/**
 * @filename:CourseSubCourseService Course
 * @project constract  V1.0
 * Copyright(c) 2018 gong Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service;

import java.util.List;

import com.znufe.exam.domain.CourseSubCourse;

/**
 *  
 * @Description:  课程表——SERVICE
 * @Author:       gong   
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
public interface CourseSubCourseService {
	
	/**
	 * 查询课程表对象
	 * @param   id
	 * @return  CourseSubCourse
	 * @author  gong
	 */
	CourseSubCourse selectByPrimaryKey(Integer id);
	
	/**
	 * 删除课程表对象
	 * @param   id
	 * @return  int
	 * @author  gong
	 */
	int deleteByPrimaryKey(Integer id);
	
	/**
	 * 添加课程表对象
	 * @param   courseSubCourse
	 * @return  int
	 * @author  gong
	 */
	int insertSelective(CourseSubCourse courseSubCourse);
	
	/**
	 * 修改课程表对象
	 * @param   courseSubCourse
	 * @return  int
	 * @author  gong
	 */
	int updateByPrimaryKeySelective(CourseSubCourse courseSubCourse);
	
	/**
	 * 查询课程表集合
	 * @param   courseSubCourse
	 * @return  List<CourseSubCourse>
	 * @author  gong
	 */
	List<CourseSubCourse> queryCourseSubCourseList(CourseSubCourse courseSubCourse);
	
    List<Integer> getAllSubCourseId(Integer courseId);

    /**
     * 删除课程绑定的所有视频
     * @param courseId
     * @return
     */
    int deleteByCourseId(Integer courseId);
}